<script setup>
import { ref } from 'vue'
import mybutton from './MyButton.vue'
</script>

<template>
  <div class="top-bar">
    <div class="logo">
      <img src="../assets/images/表白墙.svg" alt="" class="img-logo">
      <p class="logo-name">美好时光</p>
    </div>
    <div class="menu">
      <mybutton nom="cprimary" class="menu-message">留言墙</mybutton>
      <mybutton nom="csecondary" class="menu-photo">照片墙</mybutton>
    </div>
    <div class="user">
      <div class="user-avatar"></div>
    </div>
  </div>
</template>

<style lang="scss">
.top-bar {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  z-index: 999;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;

  .logo {
    display: flex;
    align-items: center;
    width: 200px;

    .img-logo {
      height: 28px;
    }

    .logo-name {
      font-size: 20px;
      color: $gray-0;
      font-weight: 600;
      padding-left: 10px;
    }
  }

  .menu {
    .menu-message {
      margin-right: 24px;
    }
  }

  .user {
    width: 200px;


    .user-avatar {
      float: right;
      border-radius: 50%;
      height: 36px;
      width: 36px;
      background-image: linear-gradient(180deg, #7BE7FF 40%, #1E85E2);
    }
  }
}
</style>
